﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Scheduler;

using EventArgs = Scheduler.EventArgs;

namespace UnitTesting.Middlewares
{
    /// <summary>
    /// AOI通讯单元
    /// </summary>
    internal class LeftAoiMiddleware : Middleware
    {
        public override bool Filter(Context ctx, EventArgs args)
        {
            return true;
        }

        protected override void DoHandleEvent(Context ctx, EventArgs args)
        {
            Console.WriteLine("LeftAoiMiddleware");
            System.Threading.Thread.Sleep(2000);
        }
    }
}
